package com.liaozhai.community.context;

import com.liaozhai.community.entity.User;

public class BaseContext {

    public static ThreadLocal<User> users = new ThreadLocal<>();

    public static User getUser(){
        return users.get();
    }

    public static void setUsers(User user){
        users.set(user);
    }

    public static void clear(){
        users.remove();
    }


}
